package com.cdn.allmobilestore.ulti;

public class Constant {
	
	public static final String[] TITLE5 = new String[] { "DANH MỤC",
		"MỚI NHẤT", "MIỄN PHÍ", "TẢI NHIỀU", "KHUYẾN MÃI" };
	public static final String[] TITLE4 = new String[] { "DANH MỤC",
			"MỚI NHẤT", "MIỄN PHÍ", "TẢI NHIỀU" };
	public static final String[] TITLE3 = new String[] { "MỚI NHẤT",
			"MIỄN PHÍ", "TẢI NHIỀU" };

	static public final int TIME_FOR_TIME_OUT = 30000;
	public static final int BUFFER_SIZE = 10 * 1024;

	// Define tag for Log
	public static final String TAG_WEBSERVICE = "WebService";

	// Key status of web service
	public static final int ERROR_NETWORK = 1000;
	public static final int ERROR_REQUEST = 10001;

	public static final int KEY_SUCCESS = 1;
	public static final int KEY_FAIL = 0;

	public static final int TAG_APP_ID = 123;
	public static final int TAG_HOLDER = 12;

	public static final int STATUS_APP_SETUP = 1;
	public static final int STATUS_APP_UPDATE = 2;
	public static final int STATUS_APP_OPEN = 3;

	public static final String email_string = "allmobile.vn@gmail.com";
	public static final String name_string = "CDN AllMobile";

	// Web service url
	public static final String APPLICATION_URL = "http://cdn.allmobile.vn/cdn/service/";


	
	public static String GET_FULL_URL = APPLICATION_URL + "full";
	
	public static String GET_SUB_CATEGORY_URL = APPLICATION_URL
			+ "subcategory/subid/%s";
	public static String GET_APP_DETAIL_URL = APPLICATION_URL
			+ "detail/appid/%s";
	public static String SEARCH_URL = APPLICATION_URL + "search/keyword/%s";
	public static String CHECK_VERSION_URL = APPLICATION_URL
			+ "checkversionandadv/";
	public static String GET_PERMISSION_URL = APPLICATION_URL + "showpermission/id/%s";
	public static String REGISTER_GCM_URL = "http://service.allmobile.vn/service/gcm/register/app/1/gcmid/%s/imei/%s/model/%s";

	public static String ADVERTISE_URL = "http://m.apps.allmobile.vn/gioithieu/";
	public static String TUTORIAL_URL = "http://m.apps.allmobile.vn/huongdan/install_not_verifyed_app.php";
	// Key for WS
	public static final String categories = "categories";
	public static final String newapps = "newapps";
	public static final String mostdownloadedapps = "mostdownloadedapps";
	public static final String freeapps = "freeapps";

	public static final String id = "id";
	public static final String name = "name";
	public static final String parents = "parents";
	public static final String status = "status";
	public static final String order = "order";
	public static final String iconLink = "iconLink";
	public static final String quantity = "quantity";
	public static final String downloadNum = "downloadNum";

	public static final String categoryId = "categoryId";
	public static final String app_name = "app_name";
	public static final String linkApk = "linkApk";
	public static final String homeicon = "home_icon";
	public static final String package_name = "package_name";
	public static final String file_size = "file_size";
	public static final String version = "version";
	public static final String is_hot = "is_hot";
	public static final String is_home = "is_home";
	public static final String is_pay = "is_pay";
	public static final String is_create_icon = "is_create_icon";
	public static final String is_online = "is_online";
	public static final String downloaded = "downloaded";
	public static final String viewed = "viewed";
	public static final String rateNum = "rateNum";
	public static final String company = "company";
	public static final String category = "cat_name";
	public static final String agency_id = "agency_id";

	public static final String description = "description";
	public static final String detail = "detail";
	public static final String listOfImage = "listOfImage";
	public static final String listOfRelativeApp = " listOfRelativeApp";
	
	public static final String version_no_support= "no-support";
	public static final String version_still_support = "still-support";
	public static final String version_lastest = "lastest";
	
	
	public static String GET_CATEGORY_URL = APPLICATION_URL
			+ "category/catid/%s";
	
	public static String GET_LISTAPP_URL = APPLICATION_URL
			+ "listapppaging/type/%s/catid/%s/";
	public static String GET_LISTAPP_PAGING_URL = APPLICATION_URL
			+ "listapppaging/type/%s/catid/%s/page/%s";
	
	public static String GET_LISCOMMENT_URL = APPLICATION_URL
			+ "listcomment/appid/%s/page/%s";
	
	public static String POST_COMMENT_URL = APPLICATION_URL
			+ "comment/";
	
	public static final String URI_DOWNLOAD 		= "content://com.cdn.allmobile/download";
	public static final String LISTAPP_TYPE_DOWNLOAD = "download";
	public static final String LISTAPP_TYPE_DEVELOPER = "developer";
	public static final String LISTAPP_TYPE_HOT = "hot";
	public static final String LISTAPP_TYPE_ALL = "all";
	
	public static final String INTENT_EXTRA_CATEGORY_PARENT_ID = "com.cdn.allmobilestore.intent.extra.category.parent.id";
	public static final String INTENT_EXTRA_CATEGORY_PARENT_NAME = "com.cdn.allmobilestore.intent.extra.category.parent.name";
	
	public static final String INTENT_EXTRA_APP_ID = "com.cdn.allmobilestore.intent.extra.app.id";
	public static final String INTENT_EXTRA_APP_NAME = "com.cdn.allmobilestore.intent.extra.app.name";
	public static final String INTENT_EXTRA_APP_CAT = "com.cdn.allmobilestore.intent.extra.app.cat";
	public static final String INTENT_EXTRA_APP_SIZE = "com.cdn.allmobilestore.intent.extra.app.size";
	public static final String INTENT_EXTRA_APP_AGENCY = "com.cdn.allmobilestore.intent.extra.app.agency";
	public static final String INTENT_EXTRA_APP_PAKAGENAME = "com.cdn.allmobilestore.intent.extra.app.pakagename";
	public static final String INTENT_EXTRA_APP_AGENCY_ID = "com.cdn.allmobilestore.intent.extra.app.agency.id";
	public static final String INTENT_EXTRA_APP_ICON = "com.cdn.allmobilestore.intent.extra.app.icon";
	public static final String INTENT_EXTRA_APP_RATE = "com.cdn.allmobilestore.intent.extra.app.rate";
	public static final String INTENT_EXTRA_NOTIFICATION_MESSAGE = "message";
	public static final String INTENT_EXTRA_NOTIFICATION_TYPE = "type";
	public static final String INTENT_EXTRA_NOTIFICATION_TYPE_DETAIL = "detail";
	public static final String INTENT_EXTRA_NOTIFICATION_PAKAGENAME = "packagename";
	
	public static final String FRAGMENT_TAG_DOWNLOAD = "fragment_tag_download";
	public static final String FRAGMENT_TAG_HOME = "fragment_tag_home";
	public static final String FRAGMENT_TAG_CATEGORY = "fragment_tag_category";
	public static final String FRAGMENT_TAG_DETAIL = "fragment_tag_detail";
	public static final String FRAGMENT_TAG_SEARCH = "fragment_tag_search";
	public static final String FRAGMENT_TAG_PROMOTION = "fragment_tag_promotion";
	public static final String FRAGMENT_TAG_TUTORIAL = "fragment_tag_tutorial";
	public static final String FRAGMENT_TAG_LOCALAPP = "fragment_tag_localapp";
	public static final String FRAGMENT_TAG_HOT = "fragment_tag_hot";
	public static final String FRAGMENT_TAG_ALL = "fragment_tag_all";
	public static final String FRAGMENT_TAG_MORE = "fragment_tag_more";
	public static final String FRAGMENT_TAG_COMMENT_ALL = "fragment_tag_comment_all";
	public static final String STRING_PREFERENCE 	= "com.cdn.allmobilestore.preferences";
	public static final String STRING_PREFERENCE_SEARCH_HISTORY 	= "com.cdn.allmobilestore.preferences.search.history";
	public static final String STRING_PREFERENCE_FIRST_TIME 	= "com.cdn.allmobilestore.preferences.first.time";
}


